package com.cxd.springcloud.feign;

import com.cxd.springcloud.entities.Payment;
import com.cxd.springcloud.vo.CommonResult;
import org.springframework.stereotype.Component;

@Component
public class PaymentFeignFallback implements PaymentFeign{

    public CommonResult<Payment> fallback(Long id){
        return new CommonResult<>("44444", "服务降级,openfeign.......", new Payment(id,null));
    }
}
